package com.dt76.smallloanbackendservice.controller.xm;


import com.dt76.smallloanbackendservice.pojo.xm.FcCheckState;
import com.dt76.smallloanbackendservice.service.xm.FcCheckStateService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/xm")
public class FcCheckStateController {

    @Resource
    private FcCheckStateService FcCheckStateService;

    @RequestMapping("/CheckState/qryAllCheckStateByID")
    @ResponseBody
    public List<FcCheckState> qryAllCheckStateByID(int id){
        return FcCheckStateService.qryAllCheckStateByID(id);
    }

    @PostMapping("/CheckState/addCheckState")
    @ResponseBody
    public int addCheckState(@RequestBody FcCheckState checkState){
        return FcCheckStateService.addCheckState(checkState);
    }
}
